<?php

namespace Database\Factories\Order;

use App\Models\Order\Order;
use Illuminate\Database\Eloquent\Factories\Factory;

class OrderFactory extends Factory
{
    protected $model = Order::class;
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        return [
            'user_id'=>1,
            'car_jia_number'=>strtoupper(implode('', $this->faker->randomElements(['a', 'b', 'c', 'd','e','f','g'], 4))).$this->faker->numberBetween(10000000,99999999),
            'case_number'=>strtoupper(implode('', $this->faker->randomElements(['a', 'b', 'c', 'd','e','f','g'], 4))).$this->faker->ean13,
            'chu_xian_date'=>$this->faker->date("Y-m-d H:i:s"),
            'bao_xian_name'=>$this->faker->name,
            'car_number'=>'鲁Q'.$this->faker->numberBetween(1000,9999),
            'ding_sun_price'=>$this->faker->randomFloat(2,10000.00,99999.99),
            'status'=>rand(1,11)
        ];
    }



}
